<?php
$language = $this->language();
$name = strtolower(system_controller_front::getInstance()->getRequest()->getActionName());
$controller = strtolower(system_controller_front::getInstance()->getRequest()->getControllerName());
?>
<div class="body tabs">
	<ul class="list">
		<li<?php if($name=='list') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/list');?>"><?php echo $language->load('List');?><?php if($name=='list') echo ' »'; ?></a>
		</li>
		<?php if($this->row && $this->row->getId()) { ?>
		<li<?php if($name=='edit') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/edit', array('id' => $this->row->getId()));?>"><?php echo $this->row->getTitle();?><?php if($name=='edit') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_contact') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/contact/index', array('s' => $this->row->getId()));?>"><?php echo $language->load('Contact');?><?php if($controller=='supplier_contact') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_order') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/order/index', array('s' => $this->row->getId()));?>"><?php echo $language->load('Order');?><?php if($controller=='supplier_order') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_product') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/product/index', array('s' => $this->row->getId()));?>"><?php echo $language->load('Product');?><?php if($controller=='supplier_product') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_warehouse') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/warehouse/index', array('s' => $this->row->getId()));?>"><?php echo $language->load('Warehouse');?><?php if($controller=='supplier_warehouse') echo ' »'; ?></a>
		</li>
		<?php } else { ?>
		<li<?php if($name=='addnew') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/addnew');?>"><?php echo $language->load('New Supplier');?><?php if($name=='addnew') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_contact') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/contact/index');?>"><?php echo $language->load('Contact');?><?php if($controller=='supplier_contact') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_order') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/order/index');?>"><?php echo $language->load('Order');?><?php if($controller=='supplier_order') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_product') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/product/index');?>"><?php echo $language->load('Product');?><?php if($controller=='supplier_product') echo ' »'; ?></a>
		</li>
		<li<?php if($controller=='supplier_warehouse') echo ' class="current"'; ?>>
			<a href="<?php echo $this->url('supplier/warehouse/index');?>"><?php echo $language->load('Warehouse');?><?php if($controller=='supplier_warehouse') echo ' »'; ?></a>
		</li>
		<?php } ?>
	</ul>
	<div class="clearfix"></div>
</div>
